﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link href="/static/admin/css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="/static/admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
	<link href="/static/admin/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/static/admin/css/iconfont.css" rel="stylesheet" type="text/css" />
	<title>后台登录 - 后台管理中心v1.0</title>
</head>
<body>

<div class="loginWraper">
	<div id="loginform" class="loginBox">
		<div class="header">台管理系统</div>
		<form class="form form-horizontal" action="" method="post" id="form-login">
			<div style="margin-top: 60px;"></div>
			<div class="row cl">
				<label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
				<div class="formControls col-xs-8">
					<input  name="username" type="text" placeholder="账户" class="input-text size-L">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
				<div class="formControls col-xs-8">
					<input  name="password" type="password" placeholder="密码" class="input-text size-L">
				</div>
			</div>

			<div class="row cl">
				<div class="formControls col-xs-8 col-xs-offset-3">
					<label for="online">
						<input type="checkbox" name="remember_me" id="remember_me" value="">
						使我保持登录状态</label>
				</div>
			</div>
			<div class="row cl">
				<div class="formControls col-xs-8 col-xs-offset-3">
					<input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
					<input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
				</div>
			</div>
		</form>
	</div>
</div>
<div class="footer">Copyright 到啦网络科技有限公司 by tp5.admin v1.0</div>
<script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/js/layer.js"></script>
<script type="text/javascript" src="/static/admin/js/jQuery.Form.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="/static/admin/js/validate-methods.js"></script>
<script type="text/javascript" src="/static/admin/js/messages_zh.js"></script>
<script type="text/javascript">
    $(function(){
        $("#form-login").validate({
            rules:{
                username:{
                    required:true
                },
                password:{
                    required:true
                }
            },
            submitHandler:function(form){
                var options = {
                    success: function (data) {
                        if(data.code==10000){
                            layer.msg(data.msg,{icon:1,time:1000});
                            setInterval("jump()",1000);
                        }else{
                            layer.msg(data.msg,{icon:5,time:1000});
                        }
                    }
                };
                $(form).ajaxSubmit(options);
            }
        });
    });
    function jump(){
        location.href = "/admin/index/index.html";
    }
</script>
</body>
</html>